package com.zatech.cgnci.project.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel("消息发送DTO")
public class MessageSendDTO {
    
    @ApiModelProperty("消息标题")
    @NotBlank(message = "消息标题不能为空")
    private String title;
    
    @ApiModelProperty("消息内容")
    @NotBlank(message = "消息内容不能为空")
    private String content;
    
    @ApiModelProperty("消息类型(NOTICE-通知消息 TASK-任务消息)")
    @NotBlank(message = "消息类型不能为空")
    private String messageType;
    
    @ApiModelProperty("业务类型(POLICY_EXPIRE-保单到期 CONTRACT_EXPIRE-合约到期 BILL_EXPIRE-账单到期 REINSURER_RATING-再保人评级 RATING_DOWNGRADE-评级下调)")
    private String businessType;
    
    @ApiModelProperty("业务ID") 
    private String businessId;
    
    @ApiModelProperty("业务编号")
    private String businessNo;
    
    @ApiModelProperty("接收人列表")
    @NotEmpty(message = "接收人不能为空")
    private List<String> receivers;
} 